#include <stdio.h>
int main()
{int n;
scanf("%d",&n);
printf("%d,%d",n/=1000,n%1000);










    return 0;
}
